<script setup lang="ts">

import { request } from '@/utils/http';
import { useCounterStore } from '@/stores/counter'


const store = useCounterStore()
//测试网络请求
const testReq = async () => {
  const res = await request.post('/login/password', { mobile: '13211112223', password: 'abc12345' })
  console.log(res.data);
}



</script>

<template>
  <view class="test-page">
    <button disabled class="uni-button">点我吧</button>
    <text class="iconfont icon-edit"></text>
    <view class="uniui-icon-symbol-tool-03" style="width: 50px;height:50px;"></view>
    <button class="uni-button" @click="testReq">测试请求</button>
    <view>----------------</view>
    <view>仓库数据1: {{ store.count }}</view>
    <view>仓库数据2: {{ store.doubleCount }}</view>
    <button class="uni-button" @click="store.increment">加1</button>
    <button class="uni-button" @click="store.decrement">减1</button>
  </view>
</template>

<style lang="scss" scoped></style>